﻿using System;
using System.Data;
using System.Configuration;
using System.Linq;
using System.Web;
using System.Web.Security;
using System.Web.UI;
using System.Web.UI.HtmlControls;
using System.Web.UI.WebControls;
using System.Web.UI.WebControls.WebParts;
using System.Xml.Linq;

namespace VTC.Web.UI
{
    public class GlobalVariables
    {
        #region Constructors
        private GlobalVariables()
        {
        } 
        #endregion

        #region Helpers
        private static object GetSession(string key)
        {
            return HttpContext.Current.Session[key];
        }

        private static void SetSession(string key, object value)
        {
            HttpContext.Current.Session[key] = value;
        }
        #endregion

        #region Properties
        private static string userName = string.Empty;
        public static string CurrentUserName
        {
            get
            {
                return userName;
            }
            set
            {
                userName = value;
            }
            
        }

        private static int userID = -1;
        public static int CurrentUserID
        {
            get
            {
                return userID;
            }
            set {
                userID = value;
            }
        }
        public static int? GetCurrentUserID()
        {
            return CurrentUserID;
        }
        #endregion

        #region Admins

        #endregion
    }
}
